package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_device
 * 
 * @author ruoyi
 * @date 2022-03-18
 */
public class SysDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备id */
    private Long deviceId;

    /** 设备名 */
    @Excel(name = "设备名")
    private String deviceName;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String devicePosition;

    /** 设备mac地址 */
    @Excel(name = "设备mac地址")
    private String deviceMacAddress;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String deviceType;

    /** 设备别名 */
    @Excel(name = "设备别名")
    private String deviceAlias;

    /** 设备协议 */
    @Excel(name = "设备协议")
    private String deviceProtocol;

    /** 设备二维码 */
    @Excel(name = "设备二维码")
    private String deviceOrcode;

    /** 设备条形码 */
    @Excel(name = "设备条形码")
    private String deviceBarCode;

    /** 设备宿主id */
    @Excel(name = "设备宿主id")
    private String deviceHostId;

    /** 设备所属区域id */
    @Excel(name = "设备所属区域id")
    private String deviceAreaId;

    /** 设备父层设备id */
    @Excel(name = "设备父层设备id")
    private String deviceParentId;

    /** 设备创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deviceCreateTime;

    /** 设备是否激活 */
    @Excel(name = "设备是否激活")
    private String deviceIsActive;

    /** 设备在线状态 */
    @Excel(name = "设备在线状态")
    private Long deviceOnline;

    /** 设备创建人id */
    @Excel(name = "设备创建人id")
    private String createUserId;

    /** 设备是否在用 */
    @Excel(name = "设备是否在用")
    private String isInUse;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDevicePosition(String devicePosition) 
    {
        this.devicePosition = devicePosition;
    }

    public String getDevicePosition() 
    {
        return devicePosition;
    }
    public void setDeviceMacAddress(String deviceMacAddress) 
    {
        this.deviceMacAddress = deviceMacAddress;
    }

    public String getDeviceMacAddress() 
    {
        return deviceMacAddress;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setDeviceAlias(String deviceAlias) 
    {
        this.deviceAlias = deviceAlias;
    }

    public String getDeviceAlias() 
    {
        return deviceAlias;
    }
    public void setDeviceProtocol(String deviceProtocol) 
    {
        this.deviceProtocol = deviceProtocol;
    }

    public String getDeviceProtocol() 
    {
        return deviceProtocol;
    }
    public void setDeviceOrcode(String deviceOrcode) 
    {
        this.deviceOrcode = deviceOrcode;
    }

    public String getDeviceOrcode() 
    {
        return deviceOrcode;
    }
    public void setDeviceBarCode(String deviceBarCode) 
    {
        this.deviceBarCode = deviceBarCode;
    }

    public String getDeviceBarCode() 
    {
        return deviceBarCode;
    }
    public void setDeviceHostId(String deviceHostId) 
    {
        this.deviceHostId = deviceHostId;
    }

    public String getDeviceHostId() 
    {
        return deviceHostId;
    }
    public void setDeviceAreaId(String deviceAreaId) 
    {
        this.deviceAreaId = deviceAreaId;
    }

    public String getDeviceAreaId() 
    {
        return deviceAreaId;
    }
    public void setDeviceParentId(String deviceParentId) 
    {
        this.deviceParentId = deviceParentId;
    }

    public String getDeviceParentId() 
    {
        return deviceParentId;
    }
    public void setDeviceCreateTime(Date deviceCreateTime) 
    {
        this.deviceCreateTime = deviceCreateTime;
    }

    public Date getDeviceCreateTime() 
    {
        return deviceCreateTime;
    }
    public void setDeviceIsActive(String deviceIsActive) 
    {
        this.deviceIsActive = deviceIsActive;
    }

    public String getDeviceIsActive() 
    {
        return deviceIsActive;
    }
    public void setDeviceOnline(Long deviceOnline) 
    {
        this.deviceOnline = deviceOnline;
    }

    public Long getDeviceOnline() 
    {
        return deviceOnline;
    }
    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }
    public void setIsInUse(String isInUse) 
    {
        this.isInUse = isInUse;
    }

    public String getIsInUse() 
    {
        return isInUse;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("devicePosition", getDevicePosition())
            .append("deviceMacAddress", getDeviceMacAddress())
            .append("deviceType", getDeviceType())
            .append("deviceAlias", getDeviceAlias())
            .append("deviceProtocol", getDeviceProtocol())
            .append("deviceOrcode", getDeviceOrcode())
            .append("deviceBarCode", getDeviceBarCode())
            .append("deviceHostId", getDeviceHostId())
            .append("deviceAreaId", getDeviceAreaId())
            .append("deviceParentId", getDeviceParentId())
            .append("deviceCreateTime", getDeviceCreateTime())
            .append("deviceIsActive", getDeviceIsActive())
            .append("deviceOnline", getDeviceOnline())
            .append("createUserId", getCreateUserId())
            .append("isInUse", getIsInUse())
            .toString();
    }
}
